*** Figure 2 ***

set scheme s2mono

use "$data/simulated_df.dta", clear 

hist rank_v2 if open==1 & phase==1 & firm_first_open_proposal==1 & rank_v2!=0 & rank_v2>-11 & rank_v2<11, ylabel(0(.03).18) bin(15) xlabel(-12.2 "-10" -11 "-9" -9.8 "-8" -8.6 "-7" -7.4 "-6" -6.2 "-5" -5 "-4" -3.7 "-3" -2.5 "-2" -1.3 "-1" .9 "1" 2.2 "2" 3.4 "3" 4.6 "4" 5.8 "5" 5.8 "5" 7 "6" 8.2 "7" 9.4 "8" 10.6 "9" 11.8 "10"  ) xtitle(Rank Around Cutoff (1 = Lowest Ranked Winner)) graphregion(color(white)) xline(-0.2, lpat(-))
graph export "$figures/figure2a.eps", replace

hist rank_v2 if open==0 & phase==1 & firm_first_conv_proposal==1 & rank_v2!=0 & rank_v2>-11 & rank_v2<11, ylabel(0(.04).12) bin(18) xlabel(-9.5 "-10" -8.5 "-9" -7.5 "-8" -6.5 "-7" -5.5 "-6" -4.5 "-5" -3.5 "-4" -2.5 "-3" -1.5 "-2" -.5 "-1" 1.5 "1" 2.5 "2" 3.5 "3" 4.5 "4" 5.5 "5" 6.5 "6" 7.5 "7" 8.5 "8" 9.5 "9" 10.5 "10") xtitle(Rank Around Cutoff (Zero is Lowest Ranked Winner)) graphregion(color(white)) xline(0.5, lpat(-))
graph export "$figures/figure2b.eps", replace


